# -*- coding:utf-8 -*-
__author__ = 'Dragon Sun'
__date__ = '2025-06-21 21:20:01'

from PySide6.QtWidgets import QApplication
from apscheduler.schedulers.background import BackgroundScheduler

from src.views.主窗口.主窗口视图控制器 import 主窗口视图控制器类

if __name__ == '__main__':
    调度器 = BackgroundScheduler()
    try:
        调度器.start()
        app = QApplication()
        app.setQuitOnLastWindowClosed(True)
        vc = 主窗口视图控制器类(调度器=调度器)
        vc.视图.show()
        vc.刷新()
        app.exec()
    finally:
        调度器.remove_all_jobs()
        调度器.shutdown()
